﻿using Newtonsoft.Json;

namespace Easy.Services.Dtos
{
    public class AddUserDTO
    {
        /// <summary>
        /// 员工转正日期, 格式: 2020-01-01
        /// </summary>
        [JsonProperty("correctionTime")]
        public string CorrectionTime { get; set; }

        /// <summary>
        /// 员工部门id
        /// </summary>
        [JsonProperty("departmentId")]
        public long DepartmentId { get; set; }

        /// <summary>
        /// 员工聘用形式, 1正式, 2非正式
        /// </summary>
        [JsonProperty("formOfEmployment")]
        public long FormOfEmployment { get; set; }

        /// <summary>
        /// 员工手机号, 校验: 符合手机号格式
        /// </summary>
        [JsonProperty("mobile")]
        public string Mobile { get; set; }

        /// <summary>
        /// 头像信息
        /// </summary>
        [JsonProperty("staffPhoto", NullValueHandling = NullValueHandling.Ignore)]
        public string StaffPhoto { get; set; }

        /// <summary>
        /// 员工入职日期, 格式: 2020-01-01
        /// </summary>
        [JsonProperty("timeOfEntry")]
        public string TimeOfEntry { get; set; }

        /// <summary>
        /// 员工名字, 校验: 1-4位字符
        /// </summary>
        [JsonProperty("userName")]
        public string UserName { get; set; }

        /// <summary>
        /// 员工工号
        /// </summary>
        [JsonProperty("workNumber")]
        public string WorkNumber { get; set; }

    }
}
